package com.spn.blog.common.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class CommentVo  implements Serializable {

    //解决BUG：comment前端提交的时候，由于精度丢失，comment_id和parent_id不一样。
    //防止前端 精度损失 把id转为string
//    @JsonSerialize(using = ToStringSerializer.class)
    private String id;

    private UserVo author;

    private String content;

    private List<CommentVo> childrens;

    private String createDate;

    private Integer level;

    private UserVo toUser;
}
